package com.guoyw.rabbitmq.springbootrabbitmq.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:  * 直连模式只需要声明队列，所有消息都通过队列转发 无需设置交换机
 * @Author: guoyw
 * @CreateDate: 2021/3/21 3:45 下午
 * @Version: 1.0
 * @Copyright COPYRIGHT © 2021 言津信息.沪ICP备18011820号.
 */
@Configuration
public class HelloWorldConfig {

  @Bean
  public Queue helloQueue(){
    return QueueBuilder.durable("hello-queue").build();
  }
}
